package aam.service;

import java.util.List;

import aam.model.BoardListVO;
import aam.model.board.BoardVO;

public interface BoardService {
	public BoardListVO getAllView(String page, int boardNo, boolean genreFlag) throws Exception;
	public List<String> getGenreList() throws Exception;
	public String getBoardNameByBoardNo(int boardNo) throws Exception;
	
	public BoardVO getContentView(int no) throws Exception;
	public BoardVO getContentNo(int no) throws Exception;
	public void write(BoardVO vo) throws Exception;
	public void updateBoard(BoardVO bvo) throws Exception;
	public void deleteBoard(int no) throws Exception;
	
	public BoardListVO getAllViewFindBySelect(String page, int boardNo, boolean genreFlag, String select, String content, String genreName) throws Exception;
	
	public BoardListVO getAllViewFindByGenre(String page, int boardNo, String genreName) throws Exception;
	
	//메인게시판뿌려주는 부분
	public List<BoardVO> getAllViewMain()throws Exception;
	public List<BoardVO> getAllViewMainByView()throws Exception;
	public List<BoardVO> getViewMainByShare()throws Exception;
	public List<BoardVO> getViewMainByReview()throws Exception;
	//파일다운로드시 포인트감소
	public void updatePointFileDown(String id) throws Exception;
	//비&추
	public int recommend(String id,int no)throws Exception;
	public int unrecommend(String id,int no)throws Exception;
	public int recommendCount(int no)throws Exception;
	public int unrecommendCount(int no)throws Exception;
}
